-- GENERATED SPELL FOR [Gordok Warlock] --


function spell0_11448(pUnit, Event) --@Banish,n/a--
pUnit:FullCastSpellOnTarget(8994,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11448', 16000, 1)
end

function spell1_11448(pUnit, Event) --@Curse of Tongues,n/a--
pUnit:FullCastSpellOnTarget(13338,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11448', 15302, 1)
end

function spell2_11448(pUnit, Event) --@Demon Armor,Self--
pUnit:FullCastSpellOnTarget(13787,pUnit)
pUnit:RegisterEvent('Sorts_11448', 0, 1)
end

function spell3_11448(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(17883,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11448', 23000, 1)
end

function spell4_11448(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(15232,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11448', 3000, 1)
end

function spell5_11448(pUnit, Event) --@Summon Doomguard,Self--
pUnit:FullCastSpellOnTarget(22865,pUnit)
pUnit:RegisterEvent('Sorts_11448', 608, 1)
end

function Sorts_11448(pUnit, Event)
local choix_sorts_11448 = math.random(0, 5)
if choix_sorts_11448 == 0 then
pUnit:RegisterEvent('spell0_11448', 1, 1)
end
if choix_sorts_11448 == 1 then
pUnit:RegisterEvent('spell1_11448', 1, 1)
end
if choix_sorts_11448 == 2 then
pUnit:RegisterEvent('spell2_11448', 1, 1)
end
if choix_sorts_11448 == 3 then
pUnit:RegisterEvent('spell3_11448', 1, 1)
end
if choix_sorts_11448 == 4 then
pUnit:RegisterEvent('spell4_11448', 1, 1)
end
if choix_sorts_11448 == 5 then
pUnit:RegisterEvent('spell5_11448', 1, 1)
end
end

function mob11448_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11448', math.random(1500, 3000), 1)
end

function mob11448_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11448_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11448_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11448, 1, 'mob11448_Action')
RegisterUnitEvent(11448, 2, 'mob11448_Leave')
RegisterUnitEvent(11448, 3, 'mob11448_Kill')
RegisterUnitEvent(11448, 4, 'mob11448_Die')
